home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
pascal
/
tegl6b.zip
/
INTROPAK.EXE
/
lha
/
MENUTEST.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-04-06
|
1KB
|
37 lines
USES
teglfont,
teglmain,
teglunit,
twcommon,
twkernel;
VAR
wf : WinFramePtr;
BEGIN
twEasyStart;
twSetHeaderFont(@f8x8bold);
twSetGlobalButtonSize(12,12);
twSetGlobalSliderSize(24,24);
new(wf);
twInit(wf,100,100,450,300);
wf^.updownslider := true;
wf^.leftrightslider := true;
twSetHeader(wf,'Menu Test');
twMenuItem(wf,' File ',true);
twSubMenuItem(wf,' Open ',true,NilUnitProc);
twSubMenuItem(wf,' Save ',true,NilUnitProc);
twSubMenuItem(wf,' Save as... ',true,NilUnitProc);
twSubMenuItem(wf,'-',false,nilunitproc);
twSubMenuItem(wf,' Exit ',true,nilunitproc);
twMenuItem(wf,' Edit ',true);
twSubMenuItem(wf,' Undo ',true,NilUnitProc);
twSubMenuItem(wf,' Select ',true,NilUnitProc);
twMenuItem(wf,' Window ',true);
twSubMenuItem(wf,' Tile ',true,NilUnitProc);
twSubMenuItem(wf,' Select ',true,NilUnitProc);
twMenuItem(wf,' Help ',true);
twSubMenuItem(wf,' Contents ',true,NilUnitProc);
twSubMenuItem(wf,' Index ',true,NilUnitProc);
twDrawWindowFrame(wf);
TeglSupervisor;
END.